/**
 * @description 敏感行为监控
 * @time 2024-05-09
 * **/

import request from '@/utils/request'

// 获取敏感行为配置列表
export function getMonitorList (data) {
  return request({
    url: '/admin/risk/monitor/list?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'post',
    data
  })
}

// 获取敏感行为监控设置详细信息
export function queryMonitor(params) {
  return request({
    url: '/admin/risk/monitor/query',
    method: 'get',
    params
  })
}

// 新增敏感行为监控设置
export function addMonitor (data) {
  return request({
    url: '/admin/risk/monitor/add',
    method: 'post',
    data
  })
}

// 记录处理
export function handleMonitor (data) {
  return request({
    url: '/admin/risk/monitor/handle',
    method: 'post',
    data
  })
}

// 查询正常结束语列表
export function queryLanguageList(params) {
  return request({
    url: '/admin/risk/language/list',
    method: 'get',
    params
  })
}

// 新增正常结束语
export function addLanguage (data) {
  return request({
    url: '/admin/risk/language/add',
    method: 'post',
    data
  })
}

// 删除正常结束语
export function delLanguage(params) {
  return request({
    url: `/admin/risk/language/${params.finishId}`,
    method: 'get'
  })
}
